import java.sql.SQLException;

import creation.DB;



public class Creation {
	/**
	 * @param args
	 * @throws SQLException 
	 * @throws ClassNotFoundException 
	 * @throws IllegalAccessException 
	 * @throws InstantiationException 
	 */
	public static void main(String[] args) throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException {
		DB db = new DB("jdbc:hsqldb:file:myEmbeddedDB","sa","");
		
		//creation de la table message
		db.executeUpdate("CREATE TABLE messages" + 
				"(name VARCHAR(100))");

		
		db.insertMultipleRows("messages", "incident", 100);
		db.saveDB();
		db.closeDB();
	}

}
